package com.yu.mall.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

@ApiModel
@Data
@Validated
public class PageDTO extends BaseDTO {

    @ApiModelProperty(value="页码",required=true,example = "1")
    @NotNull
    private Integer pageNo;

    @ApiModelProperty(value="每页显示数量",required=true,example="10")
    @NotNull
    private Integer pageSize;

}
